SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 38643: "Write Access Violation" error issued with PROC FREQ two-way table with the MISSING= option

DetailsAboutRate It

The following error might be issued when generating a PROC FREQ two-way table where one of the variables contains all missing values and OPTIONS MISSING=' ' has been specified:

ERROR: Write Access Violation In Task [ FREQ ]

In addition to the error, only some header information will display in the results.

To circumvent the problem, create a user-defined format to display blanks for missing values instead of specifying the MISSING=' ' option on an OPTIONS statement. The code below illustrates the circumvention.

data test; /* creating sample data set */ a=1; b=.; output; a=2; b=.; output; a=2; b=.; output; a=3; b=.; output; a=3; b=.; output; a=3; b=.; output; run; proc format; value myfmt .=' ' other=[8.]; run; options missing=' '; proc freq data=test; table a * b / missing; format b myfmt.; /* Removal of or commenting the FORMAT statement will result in the error */ run;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.2 TS1M09.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS1M09.3 TS1M0
Microsoft Windows XP 64-bit Edition9.2 TS1M09.3 TS1M0
Microsoft® Windows® for x649.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.2 TS1M09.3 TS1M0
Microsoft Windows XP Professional9.2 TS1M09.3 TS1M0
Windows Vista9.2 TS1M09.3 TS1M0
64-bit Enabled AIX9.2 TS1M09.3 TS1M0
64-bit Enabled HP-UX9.2 TS1M09.3 TS1M0
64-bit Enabled Solaris9.2 TS1M09.3 TS1M0
HP-UX IPF9.2 TS1M09.3 TS1M0
Linux9.2 TS1M09.3 TS1M0
Linux for x649.2 TS1M09.3 TS1M0
OpenVMS on HP Integrity9.2 TS1M09.3 TS1M0
Solaris for x649.2 TS1M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.